<button class="btn btn-danger btn-xs" data-toggle="modal" style="margin-left:2px" data-target="#incomeDelete{{ $id }}">删除</button>

<div class="modal fade" id="incomeDelete{{ $id }}" tabindex="-1" role="dialog" aria-labelledby="incomeDelete"
     aria-hidden="true">
    <div class="modal-dialog modal-xs">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="font-size: 36px;">&times;</button>
                <h4 class="modal-title" id="myModalLabel">删除(<span style="color:red; font-size:12px">此操作不可逆</span>)</h4>
            </div>
            <div class="modal-body">
                <blockquote>
                    <p>是否删除目标数据</p>
                </blockquote>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" onclick="incomeDelete({{ $id }})">确定</button>
            </div>
        </div>
    </div>
</div>
<script>
    function incomeDelete(id)
    {
        ajaxPostFunc('/admin/ajax/incomeDelete', {
            id: id,
            _token: $.admin.token
        }, {}, res => {
            console.log(res);
            window.location.reload();
        });
    }
</script>
